package net.adetech.dcweb.core.${DBEntity.packageName}.entity;

import com.alibaba.fastjson.annotation.JSONField;
import net.adetech.utils.spring.IEntity;
import org.springframework.jdbc.core.RowMapper;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
* @author auto
*
*/
public class ${DBEntity.pascalName} implements IEntity {
<#list DBEntity.hungarianNotationFields?keys as field>
    <#if DBEntity.hungarianNotationFields[field].COLUMN_COMMENT??&&DBEntity.hungarianNotationFields[field].COLUMN_COMMENT!=''>
    //${DBEntity.hungarianNotationFields[field].COLUMN_COMMENT}
    </#if>
    <#if DBEntity.hungarianNotationFields[field].DATA_TYPE=='datetime'>
    @JSONField(name = "${DBEntity.camelCaseFields[field].COLUMN_NAME}", format = "yyyy-MM-dd HH:mm:ss")
    private ${DBEntity.hungarianNotationFields[field].JAVA_TYPE} ${DBEntity.camelCaseFields[field].COLUMN_NAME};
    <#else>
    private ${DBEntity.hungarianNotationFields[field].JAVA_TYPE} ${DBEntity.camelCaseFields[field].COLUMN_NAME};
    </#if>
</#list>
<#list DBEntity.camelCaseFields?keys as field>
public ${DBEntity.camelCaseFields[field].JAVA_TYPE} get${DBEntity.pascalFields[field].COLUMN_NAME}() {return ${DBEntity.camelCaseFields[field].COLUMN_NAME};}
public void set${DBEntity.pascalFields[field].COLUMN_NAME}(${DBEntity.camelCaseFields[field].JAVA_TYPE} ${DBEntity.camelCaseFields[field].COLUMN_NAME}) {this.${DBEntity.camelCaseFields[field].COLUMN_NAME} = ${DBEntity.camelCaseFields[field].COLUMN_NAME};}
</#list>
}                                                                                                                                                                